feat(platform/a2a3): Add register-based task dispatch for host_build_…#85
Draft
ChaoZheng109 wants to merge 1 commit intoChaoWao:mainfrom
Draft
feat(platform/a2a3): Add register-based task dispatch for host_build_…#85ChaoZheng109 wants to merge 1 commit intoChaoWao:mainfrom
ChaoZheng109 wants to merge 1 commit intoChaoWao:mainfrom
Conversation
…graph runtime Implement register-based communication between AICPU and AICore for a2a3 platform with host_build_graph runtime, using hardware SPR access for task dispatch and status polling. Architecture: - Platform layer (a2a3): Register access primitives and address retrieval - Runtime layer (host_build_graph): Task dispatch and status polling logic Platform changes (a2a3): - Add AICore register read/write APIs (aicpu_regs.h/cpp, host_regs.h/cpp) - Implement register address retrieval via CANN HAL (get_aicore_regs) - Add register configuration constants in platform_config.h - Support physical_core_id tracking for register mapping Runtime changes (host_build_graph): - Replace memory-based handshake with register-based dispatch - Use DATA_MAIN_BASE register for task_id dispatch (encoding: task_id+1) - Use COND register for status polling (IDLE=0, BUSY=1) - Add Runtime.regs field for register address array - Track executing_task_ids[] in AICPU executor
2ddbb9b to
79a681d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…graph runtime
Implement register-based communication between AICPU and AICore for a2a3 platform with host_build_graph runtime, using hardware SPR access for task dispatch and status polling.
Architecture:
Platform changes (a2a3):
Runtime changes (host_build_graph):